home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-06-28 | 633 b | 38 lines | [TEXT/CWIE] |
- // Announcer.cp
-
- #ifndef Announcer_h
- #include "Announcer.h"
- #endif
- #ifndef EarBase_h
- #include "EarBase.h"
- #endif
- #ifndef ListLoop_h
- #include "ListLoop.h"
- #endif
- #ifndef ContextMaintainer_h
- #include "ContextMaintainer.h"
- #endif
-
- Announcer::Announcer()
- {
- }
-
- Announcer::~Announcer()
- {
- ContextMaintainer oldContext;
- for ( ListLoop<EarBase> ear(ears); ear.Unfinished(); ear++ )
- ear->HearDestruction();
-
- ears.RemoveAll();
- }
-
- void Announcer::Announce()
- {
- ContextMaintainer oldContext;
- for ( ListLoop<EarBase> ear(ears); ear.Unfinished(); ear++ )
- ear->HearAnnouncement();
- }
-
- #include "ListLoop.cp"
- #include "ListOf.cp"
-